import request from '@/utils/request'

// 查询卖品分类列表
export function listGoodsCategory(query) {
  return request({
    url: '/cinema/goodsCategory/list',
    method: 'get',
    params: query
  })
}

// 查询卖品分类详细
export function getGoodsCategory(id) {
  return request({
    url: '/cinema/goodsCategory/' + id,
    method: 'get'
  })
}

// 新增卖品分类
export function addGoodsCategory(data) {
  return request({
    url: '/cinema/goodsCategory',
    method: 'post',
    data: data
  })
}

// 修改卖品分类
export function updateGoodsCategory(data) {
  return request({
    url: '/cinema/goodsCategory',
    method: 'put',
    data: data
  })
}

// 删除卖品分类
export function delGoodsCategory(id) {
  return request({
    url: '/cinema/goodsCategory/' + id,
    method: 'delete'
  })
}

// 导出卖品分类
export function exportGoodsCategory(query) {
  return request({
    url: '/cinema/goodsCategory/export',
    method: 'get',
    params: query
  })
}